package protocol

/*
const (
	ERROR_NO                                       = 0x0000000
	ERROR_CLIENT_DISCONNECT                        = 0x0000001
	ERROR_CLIENT_LOGOFF                            = 0x0000002
	ERROR_NETWORK_DISCONNECT                       = 0x0000003
	ERROR_NOT_FOUND                                = 0x0000104
	ERROR_NO_MEM                                   = 0x0000106
	ERROR_CONNECT_TIMEOUT                          = 0x0000108
	ERROR_SMARTCARD_SERVICE                        = 0x000010A
	ERROR_UNAVAILABLE                              = 0x0000204
	ERROR_SMARTCARD_READER                         = 0x000020A
	ERROR_NETWORK                                  = 0x0000304
	ERROR_SMARTCART_NOCARD                         = 0x000030A
	ERROR_SECURITY                                 = 0x0000406
	ERROR_INVALID_NAME                             = 0x0000408
	ERROR_SMARTCARD_SUBSYSTEM                      = 0x000040A
	ERROR_GENERIC                                  = 0x0000704
	ERROR_CONSOLE_EXIST                            = 0x0000708
	ERROR_LICENSING_PROTOCOL                       = 0x0000808
	ERROR_NETWORK_GENERIC                          = 0x0000904
	ERROR_SECURITY_UNEXPECTED_CERTIFICATE          = 0x0000907
	ERROR_LICENSING_TIMEOUT                        = 0x0000908
	ERROR_SECURITY_USER                            = 0x0000A07
	ERROR_GENERIC_UNAVAIL                          = 0x0000B04
	ERROR_ENCRYPTION                               = 0x0000B06
	ERROR_SECURITY_USER_DISABLED                   = 0x0000B07
	ERROR_SECURITY_NLA_REQUIRED                    = 0x0000B09
	ERROR_SECURITY_USER_RESTRICTION                = 0x0000C07
	ERROR_DECOMPRESSION                            = 0x0000C08
	ERROR_SECURITY_USER_LOCKED_OUT                 = 0x0000D07
	ERROR_SECURITY_USER_DIALOG_REQUIRED            = 0x0000D09
	ERROR_SECURITY_FIPS_REQUIRED                   = 0x0000E06
	ERROR_SECURITY_USER_EXPIRED                    = 0x0000E07
	ERROR_GENERIC_FAILED                           = 0x0000E08
	ERROR_SERVER_RA_UNAVAILABLE                    = 0x0000E09
	ERROR_SECURITY_USER_PASSWORD_EXPIRED           = 0x0000F07
	ERROR_SECURITY_USER_CREDENTIALS_NOT_SENT       = 0x0000F08
	ERROR_SECURITY_USER_TIME_RESTRICTION           = 0x0001007
	ERROR_LOW_VIDEO                                = 0x0001008
	ERROR_SECURITY_USER_COMPUTER_RANGE             = 0x0001107
	ERROR_SECURITY_USER_CHANGE_PASSWORD            = 0x0001207
	ERROR_SECURITY_USER_LOGON_TYPE                 = 0x0001307
	ERROR_KRB_SUB_REQUIRED                         = 0x0001407
	ERROR_SECURITY_SERVER_INVALID_CERTIFICATE      = 0x0001B07
	ERROR_SECURITY_SERVER_TIMESKEW                 = 0x0001D07
	ERROR_SECURITY_SMARTCARD_LOCKEDOUT             = 0x0002207
	ERROR_RELAUNCH_APP                             = 0x0002507
	ERROR_UPGRADE_CLIENT                           = 0x0002604
	ERROR_RELAUNCH_REMOTE                          = 0x2000001
	ERROR_REMOTEAPP_UNSUPPORTED                    = 0x2000002
	ERROR_SECURITY_USER_PASSWORD_INVALID           = 0x3000001
	ERROR_SECURITY_CERTIFICATE_REVOKE_LIST_UNAVAIL = 0x3000002
	ERROR_SECURITY_CERTIFICATE_INVALID             = 0x3000003
	ERROR_SECURITY_CERTIFICATE_REVOKED             = 0x3000004
	ERROR_SECURITY_GATEWAY_IDENTITY                = 0x3000005
	ERROR_SECURITY_GATEWAY_SUBJECT                 = 0x3000006
	ERROR_SECURITY_GATEWAY_EXPIRED                 = 0x3000007
	ERROR_SECURITY_REMOTE_ERROR                    = 0x3000008
	ERROR_GATEWAY_NETWORK_SEND                     = 0x3000009
	ERROR_GATEWAY_NETWORK_RECEIVE                  = 0x300000A
	ERROR_SECURITY_ALTERNATE                       = 0x300000B
	ERROR_GATEWAY_INVALID_ADDRESS                  = 0x300000C
	ERROR_GATEWAY_TEMP_UNAVAIL                     = 0x300000D
	ERROR_REMOTE_CLIENT_MISSING                    = 0x300000E
	ERROR_GATEWAY_LOW_RESOURCES                    = 0x300000F
	ERROR_GATEWAY_CLIENT_DLL                       = 0x3000010
	ERROR_SMARTCART_NOSERVICE                      = 0x3000011
	ERROR_SECURITY_SMARTCARD_REMOVED               = 0x3000012
	ERROR_SECURITY_SMARTCARD_REQUIRED              = 0x3000013
	ERROR_SECURITY_SMARTCARD_REMOVED2              = 0x3000014
	ERROR_SECURITY_USER_PASSWORD_INVALID2          = 0x3000015
	ERROR_SECURITY_TRANSPORT                       = 0x3000017
	ERROR_GATEWAY_TERMINATE                        = 0x3000018
	ERROR_GATEWAY_ADMIN_TERMINATE                  = 0x3000019
	ERROR_SECURITY_USER_CREDENTIALS                = 0x300001A
	ERROR_SECURITY_GATEWAY_NOT_PERMITTED           = 0x300001B
	ERROR_SECURITY_GATEWAY_UNAUTHORIZED            = 0x300001C
	ERROR_SECURITY_GATEWAY_RESTRICTED              = 0x300001F
	ERROR_SECURITY_PROXY_AUTH                      = 0x3000020
	ERROR_SECURITY_USER_PASSWORD_MUST_CHANGE       = 0x3000021
	ERROR_GATEWAY_MAX_REACHED                      = 0x3000022
	ERROR_GATEWAY_UNSUPPORTED_REQUEST              = 0x3000023
	ERROR_GATEWAY_UNSUPPORTED_CAP                  = 0x3000024
	ERROR_GATEWAY_INCOMPAT                         = 0x3000025
	ERROR_SECURITY_SMARTCARD_INVALID_CREDENTIALS   = 0x3000026
	ERROR_SECURITY_NLA_INVALID                     = 0x3000027
	ERROR_GATEWAY_NO_CERTIFICATE                   = 0x3000028
	ERROR_GATEWAY_NOT_ALLOWED                      = 0x3000029
	ERROR_GATEWAY_INVALID_CERTIFICATE              = 0x300002A
	ERROR_SECURITY_GATEWAY_USER_PASSWORD_REQUIRED  = 0x300002B
	ERROR_SECURITY_GATEWAY_SMARTCARD_REQUIRED      = 0x300002C
	ERROR_SECURITY_SMARTCARD_UNAVAIL               = 0x300002D
	ERROR_SECURITY_FIREWALL_NOAUTH                 = 0x300002F
	ERROR_SECURITY_FIREWALL_AUTH                   = 0x3000030
	ERROR_NO_INPUT                                 = 0x3000032
	ERROR_TIMEOUT                                  = 0x3000033
	ERROR_SECURITY_GATEWAY_COOKIE_INVALID          = 0x3000034
	ERROR_SECURITY_GATEWAY_COOKIE_REJECTED         = 0x3000035
	ERROR_SECURITY_GATEWAY_AUTH_METHOD             = 0x3000037
	ERROR_SECURITY_USER_PERIOD_AUTH                = 0x3000038
	ERROR_SECURITY_USER_PERIOD_AUTHZ               = 0x3000039
	ERROR_SECURITY_GATEWAY_POLICY                  = 0x300003B
	ERROR_SECURITY_SMARTCARD_CERTIFICATE           = 0x300003C
	ERROR_LOGON_FIRST                              = 0x300003D
	ERROR_AUTH_LOGON_FIRST                         = 0x300003E
	ERROR_SESSION_ENDED                            = 0x300003F
	ERROR_SESSION_ENDED_AUTH                       = 0x3000040
	ERROR_SECURITY_GATEWAY_NAP                     = 0x3000041
	ERROR_COOKIE_SIZE                              = 0x3000042
	ERROR_PROXY_CONFIG                             = 0x3000044
	ERROR_NO_PERMISSION                            = 0x3000045
	ERROR_NO_RESOURCES                             = 0x3000046
	ERROR_RESOURCE_ACCESS                          = 0x3000047
	ERROR_UPGRADE_CLIENT2                          = 0x3000049
	ERROR_SECURITY_NETWORK_HTTPS                   = 0x300004A
	ERROR_TEMP_FAIL                                = 0x300004B
	ERROR_SECURITY_USER_MISMATCH                   = 0x300004C
	ERROR_AZURE_TOO_MANY                           = 0x300004D
	ERROR_MAX_USER                                 = 0x300004E
	ERROR_AZURE_TRIAL                              = 0x300004F
	ERROR_AZURE_EXPIRED                            = 0x3000050
)
*/

/* Common Error Code */
const (
	ERROR_SUCCESS								= 0x00000000
	ERROR_ACCESS_DENIED							= 0x00000005
	E_PROXY_INTERNALERROR                       = 0x800759D8
	E_PROXY_RAP_ACCESSDENIED                    = 0x800759DA
	E_PROXY_NAP_ACCESSDENIED                    = 0x800759DB
	E_PROXY_ALREADYDISCONNECTED                 = 0x800759DF
	E_PROXY_QUARANTINE_ACCESSDENIED             = 0x800759ED
	E_PROXY_NOCERTAVAILABLE                     = 0x800759EE
	E_PROXY_COOKIE_BADPACKET                    = 0x800759F7
	E_PROXY_COOKIE_AUTHENTICATION_ACCESS_DENIED = 0x800759F8
	E_PROXY_UNSUPPORTED_AUTHENTICATION_METHOD   = 0x800759F9
	E_PROXY_CAPABILITYMISMATCH                  = 0x800759E9
	E_PROXY_TS_CONNECTFAILED                    = 0x000059DD
	E_PROXY_MAXCONNECTIONSREACHED               = 0x000059E6
	// E_PROXY_INTERNALERROR                       = 0x000059D8
	ERROR_GRACEFUL_DISCONNECT                   = 0x000004CA
	E_PROXY_NOTSUPPORTED                        = 0x000059E8
	SEC_E_LOGON_DENIED                          = 0x8009030C
	E_PROXY_SESSIONTIMEOUT                      = 0x000059F6
	E_PROXY_REAUTH_AUTHN_FAILED                 = 0x000059FA
	E_PROXY_REAUTH_CAP_FAILED                   = 0x000059FB
	E_PROXY_REAUTH_RAP_FAILED                   = 0x000059FC
	E_PROXY_SDR_NOT_SUPPORTED_BY_TS             = 0x000059FD
	E_PROXY_REAUTH_NAP_FAILED                   = 0x00005A00
	E_PROXY_CONNECTIONABORTED                   = 0x000004D4
)
